<template>
  <div>
    <a-row type="flex">
      <a-col :md="18" :sm="24">
        <a-col :md="4" :sm="8">{{ $t('key.xh') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.name') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xm }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.sex') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xbmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.yx') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xjxx.ssyxmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.zy') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xjxx.sszymc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.subjectCode') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xjxx.sszym }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.idCard') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.zjhm }}&emsp;&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.birthDate') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.csrq && studentData.csrq.format('YYYY-MM-DD') }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.spellName') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xmpy }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.usedName') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.cym }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.enName') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.ywxm }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.maritalStatus') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hyzkmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.personalCall') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.lxdh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.dormitoryTelephone') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.ssdh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.QQNumber') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.qqhm }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.laboratoryTelephone') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.sysdh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.homePhone') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.jtdh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.national') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.mzmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.politicalLandscape') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.pozzmmmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.dormitoryAddress') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.ssdz }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.healthCondition') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.jkzkmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.homeAddress') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.jtzz }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.correspondenceAddress') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.txdz }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.inResearchOffice') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.szjyshyjjg }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.homeAddressPostCode') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.jyyzbm }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.nativePlace') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.jgsdmc }}&emsp;{{ studentData.jgcdmc }}&emsp;{{ studentData.jgxqdmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.birthPalce') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.csdsdmc }}&emsp;{{ studentData.csdcdmc }}&emsp;{{ studentData.csdxqdmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.myComposition') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.brcf }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.email') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.dzxx }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.libraryCardNo') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xjxx.jszh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.bloodType') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xxmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.examineeNo') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.xjxx.ksbh }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.foreignLangSpeak') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hhzwy }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.foreignLangProficiency') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.wyslcdmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.lastDegree') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.rxqzhxlmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.graduationDate') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.dxbyny && studentData.dxbyny.format('YYYY-MM-DD') }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.lastGraduationSchool') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.dxbyxxmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.finalDegree') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.rxqzhxwmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.highestDegreeSubject') }}：</a-col>
        <!-- <a-col :md="8" :sm="16">{{ studentData.zgxwxkml }}&emsp;</a-col> -->
        <a-col :md="8" :sm="16">{{ studentData.ssxwxkmlmc || studentData.xsxwxkmldmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.highestDegreeMajor') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.dxbyzydmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.highestDegreeUnit') }}：</a-col>
        <!-- <a-col :md="8" :sm="16">{{ studentData.zgxldw }}&emsp;</a-col> -->
        <a-col :md="8" :sm="16">{{ studentData.sxsxwdwszsfmc }}{{ studentData.sxsxwdwmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.startWorkingTime') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hscjgz && studentData.hscjgz.format('YYYY-MM-DD') }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.startWorkPlace') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hdcjgz }}&emsp;</a-col>
        <!-- <a-col :md="4" :sm="8">{{ $t('key.originalWorkUnit') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.ygzdw }}&emsp;</a-col> -->
        <a-col :md="4" :sm="8">{{ $t('key.originalPayScale') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.ygzjb }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.joinPartyDate') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hsrdht && studentData.hsrdht.format('YYYY-MM-DD') }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.joinPartyPlace') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.hdrdht }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.spouseName') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.poxm }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.spousePoliticalSta') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.pozzmmmc }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.spouseWorkUnit') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.pogzdw }}&emsp;</a-col>
        <a-col :md="4" :sm="8">{{ $t('key.spousePosition') }}：</a-col>
        <a-col :md="8" :sm="16">{{ studentData.pozwmc }}&emsp;</a-col>
      </a-col>
      <a-col :md="6" :sm="24">
        <img style="width:200px" :src="studentData.zpdz ? `${IMG_URL}${studentData.zpdz}` : require('@/assets/avator.jpg')" alt="">
      </a-col>
    </a-row>
    <a-row style="margin:10px 0;">{{ $t('key.reseachParticipated') }}：</a-row>
    <a-row>{{ studentData.cjgnxyjgz }}</a-row>
    <a-row style="margin:10px 0;">{{ $t('key.anyPapers') }}：</a-row>
    <a-row>{{ studentData.yhlwhzz }}</a-row>
    <a-row style="margin:10px 0;">{{ $t('key.selfAssessment') }}：</a-row>
    <a-row>{{ studentData.zwjd }}</a-row>
  </div>
</template>

<script>
  export default {
    props: ['xh','checked'],
    data() {
      return {
        studentData: {
          xjxx: {}
        },
        IMG_URL: process.env.IMG_URL
      }
    },
    created() {
      if(this.checked){
        this.$api.student.studentBcInfo(this.xh).then(res => {
          this.studentData = res.data
        })
      }else{
        this.$api.student.studentInfo(this.xh).then(res => {
          this.studentData = res.data
        })
      }

    }
  }
</script>

<style scoped lang="less">
  .ant-col-4 {
    margin-bottom: 10px;
  }

</style>
